package com.yonyou.cyxdms.sysAuth.service.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yonyou.cyx.framework.dao.base.SuperMapper;
import com.yonyou.cyxdms.sysAuth.service.entity.DealerBrandPO;
import com.yonyou.cyxdms.sysAuth.service.vo.vehicleProduct.DealerBrandVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author quankk
 * @since 2019-07-05
 */
public interface DealerBrandMapper extends SuperMapper<DealerBrandPO> {

    List<DealerBrandVO> querydealerBrand(Page<DealerBrandVO> page, @Param("param") Map<String, String> param);

    List<Map> queryDealer(@Param("appId") String appId, @Param("dealerCode") String dealerCode);
    /**
     *  获取品牌列表
     *
     * @param ownerCode
     * @return java.util.List<java.lang.Long>
     * @author dengqiang
     * @since 2019/8/16
     */
    List<Long> queryBrandIdListByOwnerCode(@Param("ownerCode")String ownerCode);

    /**
     * 获取品牌列表
     *
     * @param
     * @return java.util.List<java.lang.Long>
     * @author dengqiang
     * @since 2019/8/19
     */
    List<Long> queryBrandIdList(@Param("ownerCode") String ownerCode);

    /**
     * 获取车系ID列表
     *
     * @author 李贺
     * @since 2019/12/11
     */
    List<Long> querySeriesIdList(@Param("ownerCode") String ownerCode);
}
